//
//  recommendButton.m
//  Gegeda_music_MY
//
//  Created by lanou3g on 15/11/3.
//  Copyright © 2015年 周莹. All rights reserved.
//

#import "recommendButton.h"

@implementation recommendButton


-(instancetype)initWithFrame:(CGRect)frame withIconImage:(NSString *)iconImage withLabelText1:(NSString *)labelText1 withLabelText2:(NSString *)labelText2
{
    self = [super initWithFrame:frame];
    if (self)
    {
        
        self.iconImageView = [[UIImageView alloc]initWithFrame:CGRectMake(7, 5, 60, 60)];
        self.iconImageView.image = [UIImage imageNamed:iconImage];
        self.iconImageView.layer.cornerRadius = 30;
        self.iconImageView.clipsToBounds = YES;
        self.iconImageView.backgroundColor = [UIColor yellowColor];
        [self addSubview:self.iconImageView];
        
        self.firstLabel = [[UILabel alloc]initWithFrame:CGRectMake(72, 5, 150, 30)];
        self.firstLabel.text = @"音乐榜TOP50";
        [self addSubview:self.firstLabel];
        
        self.secondLabel = [[UILabel alloc]initWithFrame:CGRectMake(72, 37, 230, 30)];
        self.secondLabel.text = @"每日更新最火的音乐节目";
        [self addSubview:self.secondLabel];
        
    }
    
    return self;
}


@end
